package jgl.vajra.management.part.mine.viewModel;

import java.util.Map;

import jgl.vajra.management.part.mine.contract.BankCardEditContract;
import jgl.vajra.management.part.mine.model.BankCardEditModel;
import jgl.vajra.management.widget.mvvm.factory.CreateModel;
import jgl.vajra.management.widget.retrofithelper.rxsubscriber.ProgressObserver;
import jgl.vajra.management.widget.utils.ToastUtils;

@CreateModel(BankCardEditModel.class)
public class BankCardEditViewModel extends BankCardEditContract.ViewModel{
    @Override
    public void bindBankCardData(Map<String, Object> map) {
        mModel.bindBankCardData(map).subscribe(new ProgressObserver<String>(true,this) {
            @Override
            public void _onNext(String s) {
                ToastUtils.showShort(s);
                mView.returnBindBankCardData();
            }
        });
    }
}
